Sqlite And The N+1 Problem